﻿<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/Master_Page/Master_IPORT.Master"
    CodeBehind="frm_Transection.aspx.vb" Inherits="I_PORT.frm_Transection" title="IRPC INTELLIGENT PORT SERVICE" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td>
                        <table width="100%" border="0" cellpadding="2" cellspacing="0">
                            <tr>
                                <td style="height: 5px;">
                                    <img src="../Image/space.gif" />
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" align="center">
                                    <fieldset style="width: 95%">
                                        <legend style="color: #848585; font-family: Tahoma; font-size: 14px; font-weight: bold;">
                                            ค้นหา</legend>
                                        <table width="100%" border="0" cellpadding="2" cellspacing="0">
                                            <tr>
                                                <td style="width: 20%;" align="right">
                                                    <asp:Label ID="lbBank" runat="server" Text="ชื่อ/รหัสลูกค้า :" SkinID="lbtxt"></asp:Label>&nbsp;
                                                </td>
                                                <td align="left">
                                                    <asp:TextBox ID="txtCustomer" runat="server"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 20%;" align="right">
                                                    <asp:Label ID="Label9" runat="server" Text="Doc Date :" SkinID="lbtxt"></asp:Label>&nbsp;
                                                </td>
                                                <td align="left">
                                                    <asp:TextBox ID="txtDocDate" runat="server" Width="80px" onkeypress="return false;"></asp:TextBox>&nbsp;<asp:ImageButton
                                                        ID="imgDocDate" runat="server" ImageUrl="~/Image/calendar.png" />
                                                    <asp:CalendarExtender ID="CalendarExtender3" runat="server" TargetControlID="txtDocDate"
                                                        Format="dd MMM yyyy" PopupButtonID="imgDocDate">
                                                    </asp:CalendarExtender>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 20%;" align="right">
                                                    <asp:Label ID="Label8" runat="server" Text="ประภทการชำระเงิน :" SkinID="lbtxt"></asp:Label>&nbsp;
                                                </td>
                                                <td align="left">
                                                    <asp:DropDownList ID="ddlTypePay" runat="server" SkinID="ddl">
                                                        <asp:ListItem Value="A"><--ทั้งหมด--></asp:ListItem>
                                                        <asp:ListItem Value="E">E-Pay</asp:ListItem>
                                                        <asp:ListItem Value="M">Manual</asp:ListItem>
                                                    </asp:DropDownList>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 20%;" align="right">
                                                    &nbsp;
                                                </td>
                                                <td align="left">
                                                    <asp:Button ID="btnSearch" runat="server" CssClass="ButtonStyle" Text="ค้นหา" />
                                                    <asp:Button ID="btnClear" runat="server" CssClass="ButtonStyle" Text="เคลียร์" />
                                                </td>
                                            </tr>
                                        </table>
                                    </fieldset>
                                </td>
                            </tr>
                            <tr>
                                <td style="height: 5px;">
                                    <img src="../Image/space.gif" />
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" align="center">
                                    <asp:GridView ID="gridItem" runat="server" SkinID="gridblue" DataKeyNames="Booking_no,Type_Pay,Amount,Vat,WHT"
                                        AutoGenerateColumns="False">
                                        <PagerTemplate>
                                            <table>
                                                <tr>
                                                    <td>
                                                        <asp:ImageButton ID="ImgFirst" runat="server" Height="22px" ImageUrl="../Image/arrow-first.gif"
                                                            OnCommand="Paginate" CommandArgument="First" CommandName="Page" />
                                                    </td>
                                                    <td>
                                                        <asp:ImageButton ID="ImgBack" runat="server" Height="22px" ImageUrl="../Image/arrow-back.gif"
                                                            OnCommand="Paginate" CommandArgument="Prev" CommandName="Page" />
                                                    </td>
                                                    <td valign="top">
                                                        Page
                                                        <asp:DropDownList ID="ddlPage" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlPage_SelectedIndexChanged">
                                                        </asp:DropDownList>
                                                        of
                                                        <asp:Label ID="lbPageCount" runat="server" Text="Label"></asp:Label>
                                                    </td>
                                                    <td>
                                                        <asp:ImageButton ID="ImgNext" runat="server" Height="22px" ImageUrl="../Image/arrow-next.gif"
                                                            OnCommand="Paginate" CommandArgument="Next" CommandName="Page" />
                                                    </td>
                                                    <td>
                                                        <asp:ImageButton ID="ImgEnd" runat="server" Height="22px" ImageUrl="../Image/arrow-end.gif"
                                                            OnCommand="Paginate" CommandArgument="Last" CommandName="Page" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </PagerTemplate>
                                        <Columns>
                                            <asp:BoundField HeaderText="RV No." DataField="EX_BELNR" ItemStyle-Wrap="false" />
                                            <asp:BoundField HeaderText="Doc Date"  DataField="DOC_DATE"  ItemStyle-Wrap="false" />
                                            <asp:BoundField HeaderText="Customer No." DataField="MAgent_no" ItemStyle-Wrap="false" />
                                            <asp:BoundField HeaderText="Customer Name" DataField="MAgent_name" ItemStyle-Wrap="false" />
                                            <asp:BoundField HeaderText="GL ACCOUNT" DataField="GL_ACCOUNT" ItemStyle-Wrap="false" />
                                            <asp:BoundField HeaderText="Net Amt" DataField="AMOUNT" ItemStyle-Wrap="false" />
                                            <asp:BoundField HeaderText="Withholding Tax" DataField="WHT" ItemStyle-Wrap="false" />
                                            <asp:BoundField HeaderText="Type" ItemStyle-Wrap="false" />
                                            <asp:BoundField HeaderText="Vessel" DataField="Vehicle_Text" ItemStyle-Wrap="false" />
                                            <asp:BoundField HeaderText="Booking No." DataField="Booking_no" ItemStyle-Wrap="false" />
                                        </Columns>
                                    </asp:GridView>
                                    <asp:Label ID="lbAlert" runat="server" Font-Names="Tahoma" Style="color: Red; font-size: 16px;"
                                        Visible="False"></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td style="height: 5px;">
                        <img src="../Image/space.gif" />
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
